home *** CD-ROM | disk | FTP | other *** search
/ C & C++ Multimedia Cyber Classroom / C and C++ Multimedia Cyber Classroom (Prentice Hall) (1998).iso / src / fig09_11.jar / Ch09 / Fig09_11 / Base2.h < prev    next >
C/C++ Source or Header  |  1997-08-25  |  310b  |  16 lines

  1. // Fig. 9.11: base2.h
  2. // Definition of class Base2
  3. #ifndef BASE2_H
  4. #define BASE2_H
  5.  
  6. class Base2 {
  7. public:
  8.    Base2( char c ) { letter = c; }
  9.    char getData() const { return letter; }
  10. protected:        // accessible to derived classes
  11.    char letter;   // inherited by derived class
  12. };
  13.  
  14. #endif
  15.  
  16.